package eu.jpereira.trainings.designpatterns.creational.abstractfactory;

import eu.jpereira.trainings.designpatterns.creational.abstractfactory.json.*;

public class JSONFactory extends AbstractReportFactory {
	 private ReportBody body;
	 private ReportFooter footer;
	 private ReportHeader header;
	 private String rType;
	 
	 public JSONFactory()
	 {
        rType = "JSON";
        body = new JSONReportBody();
        footer = new JSONReportFooter();
        header = new JSONReportHeader();
    }
	
	@Override
	public ReportBody getBody() {
		// TODO Auto-generated method stub
		return body;
	}

	@Override
	public ReportFooter getFooter() {
		// TODO Auto-generated method stub
		return footer;
	}

	@Override
	public ReportHeader getHeader() {
		// TODO Auto-generated method stub
		return header;
	}

}
